package avicit.bdp.dcs.log.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

/**
 * @金航数码科技有限责任公司
 * @作者：liyb
 * @邮箱：liyb@avic-digital.com
 * @创建时间： 2020-08-05 09:32
 * @类说明：job日志实体类
 * @修改记录：
 */
@Entity
public class JobLogDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    // 主键
    @ApiModelProperty(value = "主键")
    private String id;

    // 迁移id，同步id
    @ApiModelProperty(value = "迁移id，同步id")
    private String jobId;

    //  流程实例id
    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;

    // 任务开始时间
    @ApiModelProperty(value = "任务开始时间")
    private Date startTime;

    // 任务结束时间
    @ApiModelProperty(value = "任务结束时间")
    private Date endTime;

    // 任务总耗时(秒)
    @ApiModelProperty(value = "任务总耗时(秒)")
    private Long costTime;

    // 平均采集速度(MB/s)
    @ApiModelProperty(value = "平均采集速度(MB/s)")
    private Double jobAvgSpeed;

    // 平均写入速度(rec/s)
    @ApiModelProperty(value = "平均写入速度(rec/s)")
    private Long jobWriteSpeed;

    // 采集记录总数
    @ApiModelProperty(value = "采集记录总数")
    private Long readSucceedRecords;

    // 采集数据大小
    @ApiModelProperty(value = "采集数据大小")
    private Long readSucceedBytes;

    // 执行状态，执行中：1，执行失败：6，暂停中：3，完成：7
    @ApiModelProperty(value = "执行状态，执行中：1，执行失败：6，暂停中：3，完成：7")
    private Integer executeStatus;

    // 平均采集速度
    @ApiModelProperty(value = "平均采集速度")
    private String jobAvgSpeedString;

    // 采集数据大小
    @ApiModelProperty(value = "采集数据大小")
    private String readSuccessBytesString;

    // 采集记录总数
    @ApiModelProperty(value = "采集记录总数")
    private String readSucceedRecordsString;

    // 任务开始时间
    @ApiModelProperty(value = "任务开始时间")
    private String startTimeString;

    // 任务结束时间
    @ApiModelProperty(value = "任务结束时间")
    private String endTimeString;

    // 任务总耗时(秒)
    @ApiModelProperty(value = "任务总耗时(秒)")
    private String costTimeString;

    // 任务类型
    @ApiModelProperty(value = "任务类型")
    private String taskType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getCostTime() {
        return costTime;
    }

    public void setCostTime(Long costTime) {
        this.costTime = costTime;
    }

    public Double getJobAvgSpeed() {
        return jobAvgSpeed;
    }

    public void setJobAvgSpeed(Double jobAvgSpeed) {
        this.jobAvgSpeed = jobAvgSpeed;
    }

    public Long getJobWriteSpeed() {
        return jobWriteSpeed;
    }

    public void setJobWriteSpeed(Long jobWriteSpeed) {
        this.jobWriteSpeed = jobWriteSpeed;
    }

    public Long getReadSucceedRecords() {
        return readSucceedRecords;
    }

    public void setReadSucceedRecords(Long readSucceedRecords) {
        this.readSucceedRecords = readSucceedRecords;
    }

    public Long getReadSucceedBytes() {
        return readSucceedBytes;
    }

    public void setReadSucceedBytes(Long readSucceedBytes) {
        this.readSucceedBytes = readSucceedBytes;
    }

    public Integer getExecuteStatus() {
        return executeStatus;
    }

    public void setExecuteStatus(Integer executeStatus) {
        this.executeStatus = executeStatus;
    }

    public String getJobAvgSpeedString() {
        return jobAvgSpeedString;
    }

    public void setJobAvgSpeedString(String jobAvgSpeedString) {
        this.jobAvgSpeedString = jobAvgSpeedString;
    }

    public String getReadSuccessBytesString() {
        return readSuccessBytesString;
    }

    public void setReadSuccessBytesString(String readSuccessBytesString) {
        this.readSuccessBytesString = readSuccessBytesString;
    }

    public String getStartTimeString() {
        return startTimeString;
    }

    public void setStartTimeString(String startTimeString) {
        this.startTimeString = startTimeString;
    }

    public String getEndTimeString() {
        return endTimeString;
    }

    public void setEndTimeString(String endTimeString) {
        this.endTimeString = endTimeString;
    }

    public String getCostTimeString() {
        return costTimeString;
    }

    public void setCostTimeString(String costTimeString) {
        this.costTimeString = costTimeString;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getReadSucceedRecordsString() {
        return readSucceedRecordsString;
    }

    public void setReadSucceedRecordsString(String readSucceedRecordsString) {
        this.readSucceedRecordsString = readSucceedRecordsString;
    }

}